package com.shangqing.document_management.exception;

import com.shangqing.document_management.constant.EmBusinessError;

/**
 * 自定义异常类
 */
public class BusinessException extends RuntimeException {
    private Integer code;
    public BusinessException(EmBusinessError emBusinessError){
        super(emBusinessError.getMsg());
        this.code=emBusinessError.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
